using System.Web.UI;
using System.Web.UI.WebControls;
using System.Xml;

namespace Coffee.SurveyControls.SurveyQuestions
{

    public class SQError : SurveyQuestionRow
    {

        public SQError(SurveyControl parent, XmlNode configuration)
            : base(parent, configuration)
        {
        }

        /// <summary>
        /// Handles the loading of the data from the data mapper to the controls
        /// </summary>
        public override void LoadData()
        {

        }


        public override void SaveData()
        {
         
        }

        /// <summary>
        /// Creates the controls and embeds them in the provided controls
        /// </summary>
        protected override void Initialize()
        {
          
        }

        /// <summary>
        /// Validates the control based on its configuration
        /// </summary>
        public override bool Validate()
        {
            return true;
        }

        protected override Control CreateCurrentDataControl()
        {
            return new Label();
        }

        protected override Control CreatePreviousDataControl()
        {
            return new Label();
        }

        protected override Control CreateQuestionControl()
        {
            Label errmsg = new Label();
            errmsg.Text = "Failed to load Control {0}";
            return errmsg;
        }
    }
}